package com.ruoyi.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 commodity
 *
 * @author ruoyi
 * @date 2023-08-07
 */
@Data
public class Commodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String commodityName;

    /** 商品款式 */
    @Excel(name = "商品款式")
    private String commodityStyle;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal commodityPrice;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String commodityType;

    /** 商品品牌 */
    @Excel(name = "商品品牌")
    private Long brandId;
    @Excel(name = "商品品牌名称")
    @TableField(exist = false)
    private String brandName;
    @Excel(name = "商品类状态")
    private Integer statuc;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commodityName", getCommodityName())
            .append("commodityStyle", getCommodityStyle())
            .append("commodityPrice", getCommodityPrice())
            .append("commodityType", getCommodityType())
            .append("brandId", getBrandId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
